<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.carousel {margin-top:0}
.fui-tab-scroll .item a {color:#ffd68a;font-weight:bold}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#fff;}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(255,255,255,1),rgba(255,255,255,0));}
.carousel {margin-top:0}
.fui-icon-group .fui-icon-col {
    margin: 0.1rem 0;
}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
.fui-header-right a{
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: rgba(0,0,0,0.6);
	color:#fff;
	line-height:1.6rem;
	padding:0
}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div class="fui-page fui-page-current page-goods-list">
<div class='fui-content' style="top:0">
	<div ng-include="sys_html('shop/_hdps','','','jy_weishop')"></div>
	<div class="topbg" style="position: relative;text-align:center;">
		<div class="fui-header searchtop" style="background:none;">
			<div class="fui-header-input" style="right:0.5rem">
				<div class="searchbar searchbar-active" style="margin-left:0.5rem;padding-top:0.6rem">
						<div class="search-input" style="margin-right:1.3rem">
							<i id="searchsub" class="icon icon-sousuo1" ng-click="pagedata.params.pid=-1;tool.get_list('jy_weishop/goods.index/getlist/',true)"></i>
							<input type="search" placeholder="搜索商品" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;border: 0 solid #ddd;" />
						</div>
				</div>
			</div>
			<div class="fui-header-right" style="padding-right:1rem;color:#fff">
					<a style="margin-top:0.6rem">
						<i class="icon icon-liaotian" ng-click="access_json('jy_yangshop/myhome/')" style="font-size: 1.3rem;"></i>
					</a>
			</div>
		</div>
	</div>
	<div style="background:#fff;padding: 0.5rem 0.3rem;width:100%">
		<div ng-include="sys_html('common/_bankuai1')"></div>
	</div>
	<div class="fui-cell-group fui-comment-group">
		<div class="fui-cell" style="padding-bottom:0.2rem">
				<div class="fui-cell-label" style="width: 0.5rem;"> </div>
				<div class="fui-cell-text bold" style="font-size:0.75rem">养生食谱</div>
				<div class="fui-cell-remark noremark"><i class="icon jinyunicon icon-icon-test"></i></div>
		</div>
		<div ng-if="pagedata.grasslist.length>0" class="fui-goods-group block" style="height: auto">
				<div ng-repeat="item in pagedata.grasslist" class="fui-goods-item" href="javascript:;" ng-click="access_json('jy_weishop/grass.detail//id='+item.id)" style="width:33.3%;">
					<div class="image" style="height:4rem;padding-bottom:0;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
					</div>
					<div class="detail" style="width:100%;padding-top:0.3rem">
						<div class="name">
							{{item.title}}
						</div>
					</div>
				</div>
		</div>
	</div>
	<div class="fui-cell-group fui-comment-group">
		<div class="fui-cell" style="padding-bottom:0.2rem">
				<div class="fui-cell-label" style="width: 0.5rem;"> </div>
				<div class="fui-cell-text bold" style="font-size:0.75rem">养生精选</div>
				<div class="fui-cell-remark noremark"><i class="icon jinyunicon icon-icon-test"></i></div>
		</div>
		<div ng-if="pagedata.newslist" class="fui-goods-group">
			<div ng-repeat="item in pagedata.newslist" class="fui-goods-item">
				<div ng-click="access_json('jy_weishop/grass.detail//id='+item.id)"  class="detail" style="height:2.6rem">
					<div class="name" style="-webkit-line-clamp:2">
							{{item.title}}
					</div>
					<div class="subtitle" style="padding:0.2rem 0">
						<div style="overflow-x:scroll;white-space:nowrap">
						<span ng-repeat="c in item.tags" class="jylabel jylabel-red" style="font-size:0.55rem;border-radius: 0.2rem;background-color:#fff;color:red;border: 1px solid red;">{{c.title}}</span>
						</div>
					</div>
				</div>
				<div ng-click="access_json('jy_weishop/news.list/detail/id='+item.id)" class="image" style="width:6rem;height:4rem;position:relative;background-image: url({{tomedia(item.pic_url) ||'../core/resource/images/nopic.jpg'}})">
				</div>
			</div>
		</div>
	</div>
	<div class="radius" ng-include="sys_html('common/_likegoods')"></div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_footer','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<div ng-include="sys_html('shop/_ordermodal','','','jy_weishop')"></div>
<script>
scope.pagedata.setting.issearch=1
scope.pagedata.newslistloading=true
scope.pagedata.getnewslist=function(item){
	scope.get('jy_weishop/news.list/list/',function(res){
				scope.pagedata.newslist=res.list
				scope.pagedata.newslistloading=false
				scope.$evalAsync();
	});
}
scope.pagedata.getnewslist();
scope.pagedata.grasslistloading=true
scope.pagedata.getgrasslist=function(item){
	scope.get('jy_weishop/grass.index/getlist/',function(res){
				scope.pagedata.grasslist=res.list
				scope.pagedata.grasslistloading=false
				scope.$evalAsync();
	});
}
scope.pagedata.getgrasslist();
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>